<?php 
$username = $this->session->userdata('username');
$password = $this->session->userdata('password');
if (empty($username) AND empty($password)){
	echo"..";
}else{
?>
<div id="wrappercontent">
	<?php foreach($karyawan as $data): ?>
	<?php echo form_open('login/proses_update_karyawan/'.$data->NIP); ?>
		<div class="row-fluid">
			<div class="span5">
				NIP
				<p style="margin-top:5px;"><input type="text" name="nama_lengkap" value="<?php echo $data->NIP ?>"></p>
				Nama
				<p style="margin-top:5px;"><input type="text" name="Nama" value="<?php echo $data->Nama ?>"></p>
				Alamat
				<p style="margin-top:5px;"><input type="text" name="Alamat" value="<?php echo $data->Alamat ?>"></p>
			</div>
			<div class="span5">
				No. Telp
				<p style="margin-top:5px;"><input type="text" name="NoTelp" value="<?php echo $data->NoTelp ?>"></p>
				ip
				<p style="margin-top:5px;"><input type="text" name="ip" value="<?php echo $data->ip ?>"></p>
				Departemen
				<p style="margin-top:5px;">		
					<select name="departemen">
						 <option value="0" selected>- Pilih Departemen -</option>
							 <?php foreach($departemen as $data): ?>
							 <option value=<?php echo $data->id_dept ?> ><?php echo $data->nm_dept ?></option>
						 <?php endforeach ?>
					</select>
				</p>
			</div>
		</div>
		<p style="margin-top:20px;">
			<input type="submit" value="Update" class="btn btn-danger">
		</p>
	<?php echo form_close(); ?>
	<?php endforeach ?>
</div>
<?php
}
?>